package com.yoki.cloud.common.model.enums;

/**
 * 与户主之间的关系：self：自己，spouse：配偶<BR>
 * grandfather：祖父，grandmother：祖母，father：父亲，mother：母亲<BR>
 * son：儿子，daughter：女儿，nephew：侄子，niece：侄女<BR>
 * grandson：孙子，granddaughter：孙女<BR>
 * daughterInLaw：儿媳，sonInLaw：女婿<BR>
 */
public enum EnumRelation implements AbstractEnum  {

    self(0, "自己"),
    spouse(1, "配偶"),
    grandfather(2, "祖父"),
    grandmother(3, "祖母"),
    grandPa(4, "外公"),
    grandMa(5, "外婆"),
    father(6, "父亲"),
    mother(7, "母亲"),
    uncle(8, "叔伯、舅舅"),
    son(9, "儿子"),
    daughter(10, "女儿"),
    nephew(11, "侄子"),
    niece(12, "侄女"),
    grandson(13, "孙子"),
    granddaughter(14, "孙女"),
    daughterInLaw(15, "儿媳"),
    sonInLaw(16, "女婿"),
    other(20, "其他");

    private int code;
    private String msg;

    EnumRelation(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
